<!doctype html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
	<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" crossorigin="anonymous">
	<link rel="stylesheet" th:href="@{/css/global.css}" />
	<title>粉丝列表</title>
</head>
<body>
<div class="nk-container">
	<!-- 头部 -->
	<header class="bg-dark sticky-top" th:replace="/site/home::header">

	</header>

	<!-- 内容 -->
	<div class="main">
		<div class="container">
			<div class="position-relative">
				<!-- 选项 -->
				<ul class="nav nav-tabs mb-3">
					<li class="nav-item">
						<a class="nav-link position-relative" th:href="@{|/followees/${user.id}|}">
							<i class="text-info" th:utext="${user.username}">Nowcoder</i> 关注的人
						</a>
					</li>
					<li class="nav-item">
						<a class="nav-link position-relative active" th:href="@{|/followers/${user.id}|}">
							关注 <i class="text-info" th:utext="${user.username}">Nowcoder</i> 的人
						</a>
					</li>
				</ul>
				<a th:href="@{|/user/profile/${user.id}|}" class="text-muted position-absolute rt-0">返回个人主页&gt;</a>
			</div>

			<!-- 粉丝列表 -->
			<ul class="list-unstyled">
				<li class="media pb-3 pt-3 mb-3 border-bottom position-relative" th:each="map:${users}">

					<div class="card bg-light" style="width: 920px">
						<div class="card-header text-muted border-bottom-0"><font style="vertical-align: inherit;">
							<font style="vertical-align: inherit; font-size: 20px" th:utext="${map.user.username}">
							数字策略师
						</font></font></div>
						<div class="card-body pt-0">
							<div class="row">
								<div class="col-7">
									<h2 class="lead"> <b>邮箱：</b><b><font style="vertical-align: inherit;"><font style="vertical-align: inherit;" th:utext="${map.user.email}">妮可·皮尔森（Nicole Pearson）</font></font></b></h2>
									<p class="text-muted text-sm"><b><font style="vertical-align: inherit;">
										<font style="vertical-align: inherit;">关于：</font></font></b>
										<font style="vertical-align: inherit;"><font style="vertical-align: inherit;">
											<font style="vertical-align: inherit;"> 关注于 <i th:text="${#dates.format(map.followTime,'yyyy-MM-dd HH:mm:ss')}">2019-04-28 14:13:25</i></font></font>
										</font></font></p>
								</div>
								<div class="col-5 text-center">
									<img th:src="${map.user.headerUrl}" style="width: 60px;height: 60px" alt="" class="img-circle img-fluid">
								</div>
							</div>
						</div>
						<div class="card-footer">

							<div class="text-right">
								<span>
								<a href="#" class="btn btn-sm bg-teal text-left">
									<i class="fas fa-comments">
										<input type="hidden" id="entityId" th:value="${map.user.id}">
										<button type="button" th:class="|btn ${map.hasFollowed?'btn-secondary':'btn-info'} btn-sm float-right follow-btn |"
										th:if="${loginUser!=null && loginUser.id!=map.user.id}" th:text="${map.hasFollowed?'已关注':'关注TA'}">关注TA</button>
									</i>
                                 </a>
                                 </span>
                                  <span >
                                   <a th:href="@{|/user/profile/${map.user.id}|}" class="btn btn-sm btn-primary ">
                                    <i class="fas fa-user"></i><font style="vertical-align: inherit;"><font style="vertical-align: inherit;"> 查看资料
                                    </font></font></a>
                                     </span>
                                    </div>
                                  </div>
                                  </div>
				</li>
			</ul>
			<!-- 分页 -->
			<nav class="mt-5" th:replace="/site/home::pagination">
				<ul class="pagination justify-content-center">

				</ul>
			</nav>
		</div>
	</div>

	<!-- 尾部 -->
	<footer class="bg-dark" th:replace="/site/home::footer">

	</footer>
</div>

<script src="https://code.jquery.com/jquery-3.3.1.min.js" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" crossorigin="anonymous"></script>
<script th:src="@{/js/global.js}"></script>
<script th:src="@{/js/profile.js}"></script>
</body>
</html>
